<?php
class Item extends CActiveRecord
{
    public $file;
    // ... other attributes
 
    public function rules()
    {
        return array(
            array('file', 'file', 'types'=>'xls,xlsx'),
        );
    }
}
?>